<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>for循环</title>
</head>
<body>
<div id="app">
    <li v-for="(item,index) in items">
        {{item.message}}--{{index}}
    </li>
</div>

<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script>
    var app = new Vue({
        el: "#app",
        data: {
            items: [
                {message: 'Linux应用与开发'},
                {message: '计算机二级office'},
                {message: 'Mysql必知必会'}
            ]
        }
    })

</script>
</body>
</html>
